import cv2
import numpy
#调整参数实现读取视频或调用摄像头
cap = cv2.VideoCapture("F:/github_红外线相关/视频飞控项目/相关材料和工具/20200723_100555.h264")
while 1:
    ret, frame = cap.read()
    print('read', ret, frame)
    cv2.imshow("cap", frame)
    if cv2.waitKey(100) & 0xff == ord('q'):
        break
cap.release()
cv2.destroyAllWindows()
